package com.itheima.day11;

public class Test6 {
    public static void main(String[] args) {
        int[] arr = {111,222,333,66,78};

        //定义一个计数器
        int count = 0;
        //遍历数组求出每一个数
        for (int i = 0; i < arr.length; i++) {
            if(arr[i] % 2 == 0 && arr[i] % 3 == 0){
                count++;
            }
        }
        System.out.println(count);
    }
}
